package com.guoyw.dubbo.bootclient.config;

import com.alibaba.druid.pool.DruidDataSource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

/**
 * author: guoyw
 * create: 2020-09-19 11:32
 **/
//@Configuration
//@MapperScan(basePackages = {"com.guoyw.dubbo.member.mapper"})
public class DataSourceProxyConfig{
  
  // 配置代理数据源
  @Bean
//  @ConfigurationProperties(prefix = "spring.datasource")
  public DataSource druidDataSource() {
    DruidDataSource druidDataSource = new DruidDataSource();
    return druidDataSource;
  }
  
}
